home *** CD-ROM | disk | FTP | other *** search
/ PC Format 6 (5.25") / PC Format - Issue 6 March 1992 - Disk 2.ima / PCF.BAT < prev   
DOS Batch File  |  1994-08-29  |  5KB  |  309 lines

  1. echo off
  2. cls
  3.  
  4. disp menu\pcfiss6 1
  5.  
  6. :start
  7. nocurs
  8. disp menu\pcfiss6 2
  9. getkey xuzcp
  10.  
  11.  
  12. if errorlevel 5 goto parents
  13. if errorlevel 4 goto crystal
  14. if errorlevel 3 goto zip
  15. if errorlevel 2 goto utils
  16. if errorlevel 1 goto quit
  17.  
  18. rem ****************************Crystal Installation************************
  19.  
  20. :crystal
  21. disp menu\crysop 2
  22. getkey rum
  23.  
  24. if errorlevel 3 goto start
  25. if errorlevel 2 goto unarch
  26. if errorlevel 1 goto unrun
  27.  
  28. :unrun
  29. disp menu\unrun 2
  30. getkey abe
  31.  
  32. if errorlevel 3 goto crystal
  33. if errorlevel 2 goto unrunb
  34. if errorlevel 1 goto unruna
  35.  
  36. rem ****************Unarchive and run program from a: ********************
  37. :unruna
  38. disp menu\unruna 2
  39. getkey bcm
  40.  
  41. if errorlevel 3 goto unrun
  42. if errorlevel 2 goto uncopyc
  43. if errorlevel 1 goto uncopyb
  44.  
  45. :uncopyc
  46. cls
  47. echo Please wait...
  48. md c:\crystal
  49. copy crystal\crys.exe c:\crystal
  50. c:
  51. cd crystal
  52. crys
  53. cc1
  54. a:
  55. goto start
  56.  
  57. :uncopyb
  58. cls
  59. echo Please wait...
  60. copy crystal\crys.exe b:
  61. b:
  62. crys
  63. cc1
  64. a:
  65. goto start
  66.  
  67. rem **********************Unarchive and run from b:************************
  68.  
  69. :unrunb
  70. disp menu\unrunb 2
  71. getkey acm
  72.  
  73. if errorlevel 3 goto unrun
  74. if errorlevel 2 goto uncopyci
  75. if errorlevel 1 goto uncopyai
  76.  
  77. :uncopyci
  78. cls
  79. echo Please wait...
  80. md c:\crystal
  81. copy crystal\crys.exe c:\crystal
  82. c:
  83. cd crystal
  84. crys
  85. cc1
  86. b:
  87. goto start
  88.  
  89. :uncopyai
  90. cls
  91. echo Please wait...
  92. copy crystal\crys.exe a:
  93. a:
  94. crys
  95. cc1
  96. b:
  97. goto start
  98.  
  99. :unarch
  100. disp menu\unarch 2
  101. getkey abe
  102.  
  103. if errorlevel 3 goto crystal
  104. if errorlevel 2 goto unarchb
  105. if errorlevel 1 goto unarcha
  106.  
  107. rem ***********************Unarchive program from a:*********************
  108.  
  109. :unarcha
  110. disp menu\unarcha 2
  111. getkey bcm
  112.  
  113. if errorlevel 3 goto unarch
  114. if errorlevel 2 goto uncpyc
  115. if errorlevel 1 goto uncpyb
  116.  
  117. :uncpyc
  118. cls
  119. echo Please wait...
  120. md c:\crystal
  121. copy crystal\crys.exe c:\crystal
  122. c:
  123. cd crystal
  124. crys
  125. a:
  126. goto start
  127.  
  128. :uncpyb
  129. cls
  130. echo Please wait...
  131. copy crystal\crys.exe b:
  132. b:
  133. crys
  134. a:
  135. goto start
  136.  
  137. rem ****************************Unarchive from b:*************************
  138.  
  139. :unarchb
  140. disp menu\unarchb 2
  141. getkey acm
  142.  
  143. if errorlevel 3 goto unarch
  144. if errorlevel 2 goto uncpyci
  145. if errorlevel 1 goto uncpyai
  146.  
  147. :uncpyci
  148. cls
  149. echo Please wait...
  150. md c:\crystal
  151. copy crystal\crys.exe c:\crystal
  152. c:
  153. cd crystal
  154. crys
  155. b:
  156. goto start
  157.  
  158. :uncpyai
  159. cls
  160. echo Please wait...
  161. copy crystal\crys.exe a:
  162. a:
  163. crys
  164. b:
  165. goto start
  166.  
  167. rem *****************************PKUNZIP & PKZIP****************************
  168.  
  169. :zip
  170. disp menu\pkzip 2
  171. getkey mcba
  172.  
  173. if errorlevel 4 goto ainst
  174. if errorlevel 3 goto binst
  175. if errorlevel 2 goto cinst
  176. if errorlevel 1 goto start
  177.  
  178. rem ***************************Installing to C:*****************************
  179.  
  180. :cinst
  181. cls
  182. echo Please wait...
  183. md c:\utils
  184. copy zip\*.* c:\utils
  185. goto start
  186.  
  187. rem ***************************Installing to B:*****************************
  188.  
  189. :binst
  190. cls
  191. echo Please wait...
  192. copy zip\*.* b:
  193. goto start
  194.  
  195. rem ***************************Installing to A:*****************************
  196.  
  197. :ainst
  198. cls Please wait...
  199. copy zip\*.* a:
  200. goto start
  201.  
  202. rem **********************************Utils*********************************
  203. :utils
  204. disp menu\utils 2
  205. getkey mcrs
  206.  
  207. if errorlevel 4 goto sec
  208. if errorlevel 3 goto ram
  209. if errorlevel 2 goto sim
  210. if errorlevel 1 goto start
  211. rem *******************************Secret demo******************************
  212.  
  213. :sec
  214.  
  215. disp menu\sec1 2
  216. getkey qn
  217.  
  218. if errorlevel 2 goto sec1
  219. if errorlevel 1 goto utils
  220.  
  221. :sec1
  222.  
  223. cls
  224. cd secret
  225. echo on
  226. dir
  227. pause
  228. echo off
  229. cd..
  230.  
  231. disp menu\sec2 2
  232. getkey qn
  233.  
  234. if errorlevel 2 goto sec2
  235. if errorlevel 1 goto utils
  236.  
  237. :sec2
  238.  
  239. cls
  240. cd secret
  241. echo on
  242. cdsecret
  243. dir
  244. pause
  245. echo off
  246. cd..
  247.  
  248. disp menu\sec3 2
  249. getkey c
  250.  
  251. if errorlevel 1 goto utils
  252.  
  253. rem ********************************SimCGA**********************************
  254.  
  255. :sim
  256.  
  257. cls
  258. cd simcga
  259. simcga
  260. cd..
  261. echo Your monitor will now emulate CGA
  262. pause
  263. goto utils
  264.  
  265. rem ********************************RamFree*********************************
  266.  
  267. :ram
  268. cls
  269. cd ramfree
  270. ramfree
  271. cd..
  272. pause
  273. goto utils
  274.  
  275. rem ********************************Parents*********************************
  276.  
  277. :parents
  278. disp menu\par 2
  279. getkey mcba
  280.  
  281. if errorlevel 4 goto cpya
  282. if errorlevel 3 goto cpyb
  283. if errorlevel 2 goto cpyc
  284. if errorlevel 1 goto start
  285.  
  286. :cpya
  287. cls
  288. copy \parents\*.* a:
  289. goto start
  290.  
  291. :cpyb
  292. cls
  293. copy \parents\*.* b:
  294. goto start
  295.  
  296. :cpyc
  297. cls
  298. md c:\parents
  299. copy \parents\*.* c:\parents
  300. goto start
  301.  
  302. rem *******************************Quitting*********************************
  303.  
  304. :quit
  305. cls
  306. echo Thankyou for using the PC Format coverdisk.
  307. cd..
  308. pause
  309.